﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000695 RID: 1685
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetCrossInfoScRsp : IMessage<GetCrossInfoScRsp>, IMessage, IEquatable<GetCrossInfoScRsp>, IDeepCloneable<GetCrossInfoScRsp>, IBufferMessage
	{
		// Token: 0x170015BC RID: 5564
		// (get) Token: 0x06004C00 RID: 19456 RVA: 0x000D0497 File Offset: 0x000CE697
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetCrossInfoScRsp> Parser
		{
			get
			{
				return GetCrossInfoScRsp._parser;
			}
		}

		// Token: 0x170015BD RID: 5565
		// (get) Token: 0x06004C01 RID: 19457 RVA: 0x000D049E File Offset: 0x000CE69E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetCrossInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170015BE RID: 5566
		// (get) Token: 0x06004C02 RID: 19458 RVA: 0x000D04B0 File Offset: 0x000CE6B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetCrossInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004C03 RID: 19459 RVA: 0x000D04B7 File Offset: 0x000CE6B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCrossInfoScRsp()
		{
		}

		// Token: 0x06004C04 RID: 19460 RVA: 0x000D04C0 File Offset: 0x000CE6C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCrossInfoScRsp(GetCrossInfoScRsp other) : this()
		{
			this.fightGameMode_ = other.fightGameMode_;
			this.retcode_ = other.retcode_;
			this.roomId_ = other.roomId_;
			this.aGFNBILMNFC_ = other.aGFNBILMNFC_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004C05 RID: 19461 RVA: 0x000D0514 File Offset: 0x000CE714
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCrossInfoScRsp Clone()
		{
			return new GetCrossInfoScRsp(this);
		}

		// Token: 0x170015BF RID: 5567
		// (get) Token: 0x06004C06 RID: 19462 RVA: 0x000D051C File Offset: 0x000CE71C
		// (set) Token: 0x06004C07 RID: 19463 RVA: 0x000D0524 File Offset: 0x000CE724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightGameMode FightGameMode
		{
			get
			{
				return this.fightGameMode_;
			}
			set
			{
				this.fightGameMode_ = value;
			}
		}

		// Token: 0x170015C0 RID: 5568
		// (get) Token: 0x06004C08 RID: 19464 RVA: 0x000D052D File Offset: 0x000CE72D
		// (set) Token: 0x06004C09 RID: 19465 RVA: 0x000D0535 File Offset: 0x000CE735
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170015C1 RID: 5569
		// (get) Token: 0x06004C0A RID: 19466 RVA: 0x000D053E File Offset: 0x000CE73E
		// (set) Token: 0x06004C0B RID: 19467 RVA: 0x000D0546 File Offset: 0x000CE746
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x170015C2 RID: 5570
		// (get) Token: 0x06004C0C RID: 19468 RVA: 0x000D054F File Offset: 0x000CE74F
		// (set) Token: 0x06004C0D RID: 19469 RVA: 0x000D0557 File Offset: 0x000CE757
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong AGFNBILMNFC
		{
			get
			{
				return this.aGFNBILMNFC_;
			}
			set
			{
				this.aGFNBILMNFC_ = value;
			}
		}

		// Token: 0x06004C0E RID: 19470 RVA: 0x000D0560 File Offset: 0x000CE760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetCrossInfoScRsp);
		}

		// Token: 0x06004C0F RID: 19471 RVA: 0x000D0570 File Offset: 0x000CE770
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetCrossInfoScRsp other)
		{
			return other != null && (other == this || (this.FightGameMode == other.FightGameMode && this.Retcode == other.Retcode && this.RoomId == other.RoomId && this.AGFNBILMNFC == other.AGFNBILMNFC && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004C10 RID: 19472 RVA: 0x000D05DC File Offset: 0x000CE7DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FightGameMode != FightGameMode.None)
			{
				num ^= this.FightGameMode.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.RoomId != 0UL)
			{
				num ^= this.RoomId.GetHashCode();
			}
			if (this.AGFNBILMNFC != 0UL)
			{
				num ^= this.AGFNBILMNFC.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004C11 RID: 19473 RVA: 0x000D066C File Offset: 0x000CE86C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004C12 RID: 19474 RVA: 0x000D0674 File Offset: 0x000CE874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004C13 RID: 19475 RVA: 0x000D0680 File Offset: 0x000CE880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AGFNBILMNFC != 0UL)
			{
				output.WriteRawTag(16);
				output.WriteUInt64(this.AGFNBILMNFC);
			}
			if (this.FightGameMode != FightGameMode.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.FightGameMode);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this.RoomId != 0UL)
			{
				output.WriteRawTag(96);
				output.WriteUInt64(this.RoomId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004C14 RID: 19476 RVA: 0x000D0714 File Offset: 0x000CE914
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FightGameMode != FightGameMode.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.FightGameMode);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.RoomId != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.RoomId);
			}
			if (this.AGFNBILMNFC != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.AGFNBILMNFC);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004C15 RID: 19477 RVA: 0x000D079C File Offset: 0x000CE99C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetCrossInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FightGameMode != FightGameMode.None)
			{
				this.FightGameMode = other.FightGameMode;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.RoomId != 0UL)
			{
				this.RoomId = other.RoomId;
			}
			if (other.AGFNBILMNFC != 0UL)
			{
				this.AGFNBILMNFC = other.AGFNBILMNFC;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004C16 RID: 19478 RVA: 0x000D0814 File Offset: 0x000CEA14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004C17 RID: 19479 RVA: 0x000D0820 File Offset: 0x000CEA20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 16U)
					{
						this.AGFNBILMNFC = input.ReadUInt64();
						continue;
					}
					if (num == 56U)
					{
						this.FightGameMode = (FightGameMode)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 72U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.RoomId = input.ReadUInt64();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001E14 RID: 7700
		private static readonly MessageParser<GetCrossInfoScRsp> _parser = new MessageParser<GetCrossInfoScRsp>(() => new GetCrossInfoScRsp());

		// Token: 0x04001E15 RID: 7701
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001E16 RID: 7702
		public const int FightGameModeFieldNumber = 7;

		// Token: 0x04001E17 RID: 7703
		private FightGameMode fightGameMode_;

		// Token: 0x04001E18 RID: 7704
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04001E19 RID: 7705
		private uint retcode_;

		// Token: 0x04001E1A RID: 7706
		public const int RoomIdFieldNumber = 12;

		// Token: 0x04001E1B RID: 7707
		private ulong roomId_;

		// Token: 0x04001E1C RID: 7708
		public const int AGFNBILMNFCFieldNumber = 2;

		// Token: 0x04001E1D RID: 7709
		private ulong aGFNBILMNFC_;
	}
}
